#include <QtGui/QApplication>
#include "QtRoborace.h"

int main(int argc, char *argv[])
{
	try
	{
		QApplication a(argc, argv);
		QtRoborace w;
		w.show();
		a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
		return a.exec();
	}
	catch(const char* s)
	{
		printf("Error: %s\n", s);
	}
	catch(...)
	{
		printf("Unknown error\n");
	}
}
